package com.king.hpeproject.entity.perm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.king.hpeproject.entity.base.BaseDo;
import com.king.hpeproject.entity.base.UserAware;
import lombok.Data;
import lombok.EqualsAndHashCode;


@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_mdm_perm_account")
public class AccountDo extends BaseDo implements UserAware {

    @TableId(value = "account_id", type = IdType.AUTO)
    private Long accountId;

    private String accountName;

    private String password;

    @Override
    public Long getUserId() {
        return accountId;
    }

    @Override
    public String getUserName() {
        return accountName;
    }
}
